@extends('layouts.app')

@section('content')

    <heading>{{ __('Register') }}</heading>


    <card>

      <tig-form action="{{ route('register') }}">
        <default-field>
          <template slot="label" :fieldName="'name'">{{ __('Name') }}</template>
          <template slot="field">
            <input title="用户名" type="text" name="name" class="w-full form-control form-input form-input-bordered" value="{{ old('name') }}" required autofocus/>
          </template>
        </default-field>
        {{--<default-field>--}}
          {{--<template slot="label" :fieldName="'email'">{{ __('E-Mail Address') }}</template>--}}
          {{--<template slot="field">--}}
            {{--<input title="email" type="email" name="email" class="w-full form-control form-input form-input-bordered" value="{{ old('email') }}"/>--}}
          {{--</template>--}}
        {{--</default-field>--}}


        <default-field>
          <template slot="label" :fieldName="'password'">{{ __('Password') }}</template>
          <template slot="field">
            <input title="password" type="password" name="password" class="w-full form-control form-input form-input-bordered"/>
          </template>
        </default-field>

        <default-field>
          <template slot="label" :fieldName="'password-confirm'">{{ __('Confirm Password') }}</template>
          <template slot="field">
            <input title="password confirm" type="password" name="password_confirmation" class="w-full form-control form-input form-input-bordered"/>
          </template>
        </default-field>

        <default-field field-name="code">
          <template slot="label" >注册码</template>
          <template slot="field">
            <input title="code" type="text" name="code" class="w-full form-control form-input form-input-bordered"/>
            <help-text>
                请留意站内获取注册码的信息
            </help-text>
          </template>
        </default-field>

        <default-field>
          <template slot="field">
            <button type="submit" class="btn btn-default btn-primary">
              {{ __('Register') }}
            </button>
          </template>
        </default-field>
      </tig-form>

    </card>

@endsection
